package com.ruoyi.project.person.invite.domain;

import com.ruoyi.project.system.post.domain.Post;

import java.util.Objects;

/**
 * 招聘信息表
 */
public class Invite {

    private int invId;

    private String invTitle;

    private String invContent;

    private int postId;

    private String invStatus;

    private Post invPost;

    @Override
    public String toString() {
        return "Invite{" +
                "invId=" + invId +
                ", invTitle='" + invTitle + '\'' +
                ", invContent='" + invContent + '\'' +
                ", postId=" + postId +
                ", invStatus='" + invStatus + '\'' +
                ", invPost=" + invPost +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Invite invite = (Invite) o;
        return invId == invite.invId &&
                postId == invite.postId &&
                Objects.equals(invTitle, invite.invTitle) &&
                Objects.equals(invContent, invite.invContent) &&
                Objects.equals(invStatus, invite.invStatus) &&
                Objects.equals(invPost, invite.invPost);
    }

    @Override
    public int hashCode() {
        return Objects.hash(invId, invTitle, invContent, postId, invStatus, invPost);
    }

    public int getInvId() {
        return invId;
    }

    public void setInvId(int invId) {
        this.invId = invId;
    }

    public String getInvTitle() {
        return invTitle;
    }

    public void setInvTitle(String invTitle) {
        this.invTitle = invTitle;
    }

    public String getInvContent() {
        return invContent;
    }

    public void setInvContent(String invContent) {
        this.invContent = invContent;
    }

    public int getPostId() {
        return postId;
    }

    public void setPostId(int postId) {
        this.postId = postId;
    }

    public String getInvStatus() {
        return invStatus;
    }

    public void setInvStatus(String invStatus) {
        this.invStatus = invStatus;
    }

    public Post getInvPost() {
        return invPost;
    }

    public void setInvPost(Post invPost) {
        this.invPost = invPost;
    }

    public Invite() {
    }

    public Invite(int invId, String invTitle, String invContent, int postId, String invStatus, Post invPost) {
        this.invId = invId;
        this.invTitle = invTitle;
        this.invContent = invContent;
        this.postId = postId;
        this.invStatus = invStatus;
        this.invPost = invPost;
    }
}
